<template>
  <PurchaseOrderForm :purchaseOrderId="purchaseOrderId"></PurchaseOrderForm>
</template>
<script setup name="EditPurchaseOrder">
import { useRoute } from 'vue-router'
import PurchaseOrderForm from '@/views/sourceManage/purchaseOrder/modules/purchaseOrderForm'

const route = useRoute()
let purchaseOrderId = ref(null)
watch(
  () => route.query.purchaseOrderId,
  () => {
    if (route.query.purchaseOrderId) {
      purchaseOrderId.value = route.query.purchaseOrderId
    }
  },
  {
    immediate: true
  }
)
</script>
